import request from '@/utils/request'

// 监控列表
export function cameraList(params) {
  return request({
    url: '/camera/get',
    method: 'get',
    params
  })
}

//新增摄像头
export function cameraAdd(data) {
  return request({
    url: '/camera/add',
    method: 'post',
    data
  })
}

//修改摄像头
export function cameraEdit(data) {
  return request({
    url: '/camera/edit',
    method: 'post',
    data
  })
}

//删除
export function cameraDel(id){
  return request({
    url: '/camera/delete',
    method: 'post',
    data:{
      cameraId:id
    }
  })
}
